package com.csnf.mall.mapper;

import com.csnf.mall.entity.Product;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
// @Mapper 指定这个接口 是 mybatis的使用层
@Mapper
public interface ProductMapper {

    List<Product> getProducts(@Param("productName") String productName,@Param("categoryId") Integer categoryId);

    public int deleteById (int id);

    List<Product> getAllProduct();

    Product getProductById(Integer productId);
}
